/**
 * 
 */
package hr.fer.zemris.annotator.model.profiling;

/**
 * @author dajan
 * 
 */
public class FlatProfileData {

	/*
	 * the percentage of the total running time of the program used by this
	 * function.
	 */
	private String timePercentage;

	/*
	 * a running sum of the number of seconds accounted for by this function and
	 * those listed above it.
	 */
	private String cumulativeSeconds;

	/*
	 * the number of seconds accounted for by this function alone. This is the
	 * major sort for this listing.
	 */
	private String selfSeconds;
	private String calls;
	private String selfCalls;
	private String totalCalls;

	public String getTimePercentage() {
		return timePercentage;
	}

	public void setTimePercentage(String timePercentage) {
		this.timePercentage = timePercentage;
	}

	public String getCumulativeSeconds() {
		return cumulativeSeconds;
	}

	public void setCumulativeSeconds(String cumulativeSeconds) {
		this.cumulativeSeconds = cumulativeSeconds;
	}

	public String getSelfSeconds() {
		return selfSeconds;
	}

	public void setSelfSeconds(String selfSeconds) {
		this.selfSeconds = selfSeconds;
	}

	public String getCalls() {
		return calls;
	}

	public void setCalls(String calls) {
		this.calls = calls;
	}

	public String getSelfCalls() {
		return selfCalls;
	}

	public void setSelfCalls(String selfCalls) {
		this.selfCalls = selfCalls;
	}

	public String getTotalCalls() {
		return totalCalls;
	}

	public void setTotalCalls(String totalCalls) {
		this.totalCalls = totalCalls;
	}

	@Override
	public String toString() {
		String flatProfileData = "Flat profile: "
				+ System.getProperty("line.separator");
		flatProfileData += "---------------------------------------------"
				+ System.getProperty("line.separator");

		flatProfileData += "Time percentage: " + this.timePercentage
				+ System.getProperty("line.separator") + "Cumulative seconds: "
				+ this.cumulativeSeconds + System.getProperty("line.separator")
				+ "Self seconds: " + this.selfSeconds
				+ System.getProperty("line.separator");

		flatProfileData += "Calls: " + this.calls
				+ System.getProperty("line.separator") + "Self calls: "
				+ this.selfCalls + System.getProperty("line.separator")
				+ "Total Calls: " + this.totalCalls;

		return flatProfileData;
	}

}
